<?php
	defined('_JEXEC') or die('Restricted access');
	jimport( 'joomla.application.application' );
	require_once( JPATH_COMPONENT.DS.'controller.php' );
	$controller = new HizkimizkiController();
	
	$user =& JFactory::getUser();
	
	// Perform the Request task
	$task = JRequest::getVar( 'task' );
	//Control admin part and users permisions
	if (($task == "adminHizkimizki"
		|| $task == "approveTranslation"
		|| $task == "denyTranslation"
		|| $task == "editTranslation"
		|| $task == "manageTranslation"
		|| $task == "stateTranslation") &&
		$user->id == 0){
			$link = 'index.php?option=com_hizkimizki';
			JFactory::getApplication()->redirect($link, $msg='', $msgType='message');			
	}

	$controller->execute( $task );
	$controller->redirect();
?>